package com.liwenfeng.bigevent.pojo;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Pattern;
import lombok.Data;

@Data
public class LoginOrRegisterDTO {
    @NotNull
    @Pattern(regexp = "^\\S{5,16}$")
    private String username;
    @NotNull
    @Pattern(regexp = "^\\S{5,16}$")
    private String password;
}
